package com.supermarket.entity;
/**
 * 用户类
 * @author bi
 *
 */
public class User {
     private int id;
     private String username;    //用户名
     private String password;    //密码
     private String sex;         //性别
     private int age;            //年龄
     private String mobile;      //电话
     private String address;     //地址
     private int role;           //权限角色
     private String repassword;  //确认密码

	public int getId() {

			return id;
	}

	public void setId(int id) {

		this.id = id;
	}


	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public int getRole() {
		return role;
	}
	public void setRole(int role) {
		this.role = role;
	}
	public String getRepassword() {
		return repassword;
	}
	public void setRepassword(String repassword) {
		this.repassword = repassword;
	}
	public User(String username, String password,int role) {
		super();
		this.username = username;
		this.password = password;
		this.role=role;
	}
	public User(String username, String password) {
		super();
		this.username = username;
		this.password = password;
	
	}

	public User() {
	}
}
